<!--{template wechat:wechat_header}-->
<div style="text-align:center">
<div class="weixin_icon"></div>
<div class="weixin_tips">{lang wechat:wechat_register}</div>
<!--{if $_G['wechat']['setting']['wechat_allowregister']}-->
	<form id="registerform" method="post" class="block" autocomplete="off" action="{$selfurl}register">
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<input type="hidden" name="wxopenid" value="$wxopenid" />
		<input type="hidden" name="avatar" value="$_GET[avatar]" />
		<input type="hidden" name="submit" value="yes" />
		<div class="loginbox registerbox">
			<div class="weixin_input">
				<input type="text" tabindex="1" size="30" autocomplete="off" value="$defaultusername" name="username" placeholder="{lang registerinputtip}" fwin="login">
			</div>
            <button tabindex="7" value="true" name="submit" type="submit" class="weixinpnc"><span>{lang wechat:quickregister}</span></button>
            <div class="weixinpnc" id="weixin_user_login_bar" style="margin-top:20px; background:#459ae9"><span>{lang mobile:qqregmode2}</span></div>
		</div>
	</form>
   
<!--{/if}-->

<form id="loginform" method="post" autocomplete="off" action="{$selfurl}login"{if $_G['wechat']['setting']['wechat_allowregister']} style="display:none"{/if}>
	<input type="hidden" name="formhash" value="{FORMHASH}" />
	<input type="hidden" name="wxopenid" value="$wxopenid" />
	<input type="hidden" name="submit" value="yes" />
    <input type="hidden" name="answer" id="answer_{$loginhash}" class="px p_fre" size="30" placeholder="{lang security_a}">
	<div class="loginbox">
        <div class="weixin_input"><input type="text" value="" tabindex="1" class="px p_fre" size="30" autocomplete="off" value="" name="username" placeholder="{lang wechat:inputyourname}" fwin="login"></div>
        <div class="weixin_input"><input type="password" tabindex="2" class="px p_fre" size="30" value="" name="password" placeholder="{lang login_password}" fwin="login"></div>
		<button tabindex="3" value="true" name="submit" type="submit" class="weixinpnc" style="background:#459ae9"><span>{lang mobile:qqregmode2}</span></button>
		</div>
	</div>
</form>
</div>
<script type="text/javascript">
	(function() {
		$('#weixin_user_login_bar').click(function(){
			$('#loginform').show();
			$('#weixin_user_login_bar').hide();
		});
	 })();
</script>

</body>
</html>